/*
 * SingletonHolder.hpp
 *
 *  Created on: 29/09/2010
 *      Author: paulo
 */

#ifndef SINGLETONHOLDER_HPP_
#define SINGLETONHOLDER_HPP_


template<class T> class SingletonHolder
{
    public:
        static T& getInstance()
        {
            static T laInstanciaSingleton; //asumir T posee un constructor por defecto
            return laInstanciaSingleton;
        }
};



#endif /* SINGLETONHOLDER_HPP_ */
